﻿using System;
using System.Collections.Generic;
using System.Xml;
using System.Text;

namespace EAIClassLibrary
{
    [Serializable]
    public class EAIException : Exception
    {
        public EAIException(string errorCode, string errorMessage)
        {
            ErrorCode = errorCode;
            ErrorMessage = errorMessage;
        }

        public EAIException(string errorCode, string errorMessage, XmlDocument errorMessageBody)
        {
            ErrorCode = errorCode;
            ErrorMessage = errorMessage;
            ErrorMessageBody = errorMessageBody;
        }
        public string ErrorCode { get; set; }
        public string ErrorMessage { get; set; }
        public XmlDocument ErrorMessageBody { get; set; }
    }
}
